package com.demo.aop;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 
 * @author molly
 * @date 2019年1月11日
 */
public class AspectDemo {

	public void demoMethod1() {
		System.out.println("=========AspectDemo demoMethod1============");
	}
	
	public void demoMethod2() {
		System.out.println("=========AspectDemo demoMethod2============");
	}
	
	public void demoMethod3() {
		System.out.println("=========AspectDemo demoMethod3============");
	}
	
	public void demoMethod4() {
		System.out.println("=========AspectDemo demoMethod4============");
	}
	
	
	public void demoMethod5(ProceedingJoinPoint jp) {
		System.out.println("=========AspectDemo demoMethod5 around START============");
		try {
			System.out.println("=AspectDemo demoMethod5 before=");
			jp.proceed();
			System.out.println("=AspectDemo demoMethod5 after=");
		} catch (Throwable e) {
			System.out.println("=AspectDemo demoMethod5 throwable=");
			e.printStackTrace();
		}
		System.out.println("=========AspectDemo demoMethod5 around END============");
		
		
	}
	
}
